package com.crz.server.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description：Mybatis分页配置
 * @Author：crz
 * @Date：2022/3/5 15:26
 */
@Configuration
public class MybatisPlusConfig {

    //配置分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }

}
